package org.lucky.controller;

import cn.shuibo.annotation.Decrypt;
import org.lucky.service.IInviteService;
import org.lucky_common.domain.InviteParam;
import org.lucky_common.domain.ParseParamObj;
import org.lucky_common.util.AjaxResult;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/invite")
public class InviteController {
    @Resource
    private IInviteService iInviteService;

    @PostMapping("/InitInvite")
    //    @Encrypt
    @Decrypt
    public AjaxResult InitInvite(@RequestBody InviteParam invite){
        return iInviteService.saveInvite(invite);
    }

}
